<template>
  <div>
    father组件
    <Son :a="1" @myclick="fn($event)"></Son>
  </div>
</template>

<script>
import Son from "./Son.vue";
export default {
  components: {
    Son,
  },
  name: "MyFather",
  data() {
    return {};
  },
  methods: {
    fn(num) {
      console.log(num);
    },
  },
};
</script>

<style scoped></style>
